var connector = require("../../../src/runtime/jaba");

(function($service$){
var $input$ = {};

/* Init code */

/* Remote code */
var $script$ = 'for product in root.Products.orderBy("UnitsInStock"true) do (g0:product.ProductName; g1:product.UnitsInStock) end; ';
var $batch$ = $service$.execute($script$, $input$, function($result$) {

/* Local code */
$result$.getIteration("product").forEach(function(product){
console.log(((("Name=" + product.getString("g0")) + " UnitsInStock=") + product.getString("g1")));
});

});
})(connector);